package com.ruoyi.common.core.result;


/**
 * @author by shixd
 * @date 2021/3/22
 * @desc
 */
public class BusinessException extends RuntimeException {

    private static final long serialVersionUID = 7939632327182798006L;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }
    private Integer code;
    private String msg;

}
